package com.xz.realdemo2.factory;

import com.xz.demo.domain.Product;
import com.xz.realdemo2.model.Car;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     CarFactory   
 * @package    com.xz.realdemo2.factory  
 * @date   2019/11/27 10:17  
 * @explain
 */
public abstract class CarFactory implements Car{

    protected abstract Car createCar();

    @Override
    public void extractCar(String managerName) {
        this.createCar().extractCar(managerName);
    }
}
